package com.inforich.carManage.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;

import com.inforich.common.core.domain.BaseParamEntity;
import com.inforich.common.annotation.Excel;
import javax.validation.constraints.Size;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.inforich.common.core.domain.BaseEntity;

/**
 * 车辆管理(司机)
 *
 * @author hjm
 * @date 2022-10-24
 */
@Data
@EqualsAndHashCode()
@Accessors(chain = true)
@TableName("br_driver")
public class Driver extends BaseParamEntity {

  private static final long serialVersionUID = 1L;

  /**
   * 主键
   */
  @TableId(type = IdType.AUTO)
  private Long id;

  /**
   * 车牌号
   */
  @Excel(name = "车牌号")
  @Size(max = 10)
  private String carNumber;

  /**
   * 司机姓名
   */
  @Excel(name = "司机姓名")
  @Size(max = 10, message = "司机姓名最大长度为10")
  @TableField("name_")
  private String name;

  /**
   * 手机号
   */
  @Excel(name = "手机号")
  @Size(max = 11)
  private String phone;

  /**
   * 车辆载重(吨)
   */
  @Excel(name = "车辆载重(吨)")
  private BigDecimal vehicleLoad;

  /**
   * 驾照
   */
  private String drivingLicenseImageId;

  /**
   * 清运公司
   */
  private String transportCompanyId;
  @Excel(name = "清运公司")
  @TableField(exist = false)
  private String transportCompanyName;

  /**
   * 车辆类型
   */
  @Excel(name = "车辆类型", dictType = "car_type_id")
  private Long carTypeId;

  /**
   * 当前位置
   */
  private String currentLocation;

  /**
   * 视频源
   */
  private String videoUrl;

  /**
   * 身份证号码
   */
  @Excel(name = "身份证号码")
  private String idnumber;

  /**
   * 准运证图片
   */
  private String transportPermitImage;

}